package com.xml.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * Reader entity. @author MyEclipse Persistence Tools
 */

public class Reader implements java.io.Serializable {

	// Fields

	private Integer id;
	private String readerId;
	private String password;
	private String readerName;
	private String telephone;
	private String sex;
	private Integer numOfBorrow;
	private Set borrows = new HashSet(0);

	// Constructors

	/** default constructor */
	public Reader() {
	}

	/** minimal constructor */
	public Reader(String readerId, String password, String readerName, String telephone, String sex,
			Integer numOfBorrow) {
		this.readerId = readerId;
		this.password = password;
		this.readerName = readerName;
		this.telephone = telephone;
		this.sex = sex;
		this.numOfBorrow = numOfBorrow;
	}

	/** full constructor */
	public Reader(String readerId, String password, String readerName, String telephone, String sex,
			Integer numOfBorrow, Set borrows) {
		this.readerId = readerId;
		this.password = password;
		this.readerName = readerName;
		this.telephone = telephone;
		this.sex = sex;
		this.numOfBorrow = numOfBorrow;
		this.borrows = borrows;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getReaderId() {
		return this.readerId;
	}

	public void setReaderId(String readerId) {
		this.readerId = readerId;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getReaderName() {
		return this.readerName;
	}

	public void setReaderName(String readerName) {
		this.readerName = readerName;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getNumOfBorrow() {
		return this.numOfBorrow;
	}

	public void setNumOfBorrow(Integer numOfBorrow) {
		this.numOfBorrow = numOfBorrow;
	}

	public Set getBorrows() {
		return this.borrows;
	}

	public void setBorrows(Set borrows) {
		this.borrows = borrows;
	}

	@Override
	public String toString() {
		return "Reader [id=" + id + ", readerId=" + readerId + ", password=" + password + ", readerName=" + readerName
				+ ", telephone=" + telephone + ", sex=" + sex + ", numOfBorrow=" + numOfBorrow + ", borrows=" + borrows
				+ "]";
	}
	

}